package net.begincode.admin.bean;

import com.google.common.base.Preconditions;
import lombok.Builder;
import org.springframework.util.CollectionUtils;

import java.io.Serializable;
import java.text.CollationElementIterator;
import java.util.List;

public class BlogKeyWordParam implements Serializable ,ParamCheck {
    private static final long serialVersionUID = -3303214891020489987L;
    private Long blogId;
    private List<Long> keyWordIds;
    @Override
    public void checkParam() {
        Preconditions.checkNotNull(blogId, "blogId not null");
        Preconditions.checkArgument(!CollectionUtils.isEmpty(keyWordIds), "keyWordIds not empty");
    }

    public Long getBlogId() {
        return blogId;
    }

    public void setBlogId(Long blogId) {
        this.blogId = blogId;
    }

    public List<Long> getKeyWordIds() {
        return keyWordIds;
    }

    public void setKeyWordIds(List<Long> keyWordIds) {
        this.keyWordIds = keyWordIds;
    }
}
